package com.user.service.impl;

import org.user.dao.UserDao;
import org.user.domain.User;
import org.user.service.UserService;

import com.user.dao.impl.UserDaoImpl;

public class UserServiceImpl implements UserService{
	
	private UserDao userDao = new UserDaoImpl();
	
	@Override
	public void add(User user) {
		 System.out.println("这是我添加的内容");
         userDao.save(user);
	}

	@Override
	public void update(User user) {
		userDao.update(user);
		System.out.println("service update.......");
	}

}
